package com.org.model;

import java.sql.Timestamp;
import java.util.HashSet;
import java.util.Set;

/**
 * Promotion entity. @author MyEclipse Persistence Tools
 */

public class Promotion implements java.io.Serializable {

	// Fields

	private Long id;
	private Timestamp createDate;
	private Timestamp modifyDate;
	private Integer orders;
	private Timestamp beginDate;
	private Timestamp endDate;
	private Double endPrice;
	private String introduction;
	private Boolean isCouponAllowed;
	private Boolean isFreeShipping;
	private String name;
	private Integer pointOperator;
	private Double pointValue;
	private Integer priceOperator;
	private Double priceValue;
	private Double startPrice;
	private String title;
	private Set promotionMemberRanks = new HashSet(0);
	private Set promotionBrands = new HashSet(0);
	private Set promotionProducts = new HashSet(0);
	private Set promotionCoupons = new HashSet(0);
	private Set giftItems = new HashSet(0);
	private Set promotionProductCategories = new HashSet(0);

	// Constructors

	/** default constructor */
	public Promotion() {
	}

	/** minimal constructor */
	public Promotion(Timestamp createDate, Timestamp modifyDate,
			Boolean isCouponAllowed, Boolean isFreeShipping, String name,
			Integer pointOperator, Integer priceOperator, String title) {
		this.createDate = createDate;
		this.modifyDate = modifyDate;
		this.isCouponAllowed = isCouponAllowed;
		this.isFreeShipping = isFreeShipping;
		this.name = name;
		this.pointOperator = pointOperator;
		this.priceOperator = priceOperator;
		this.title = title;
	}

	/** full constructor */
	public Promotion(Timestamp createDate, Timestamp modifyDate,
			Integer orders, Timestamp beginDate, Timestamp endDate,
			Double endPrice, String introduction, Boolean isCouponAllowed,
			Boolean isFreeShipping, String name, Integer pointOperator,
			Double pointValue, Integer priceOperator, Double priceValue,
			Double startPrice, String title, Set promotionMemberRanks,
			Set promotionBrands, Set promotionProducts, Set promotionCoupons,
			Set giftItems, Set promotionProductCategories) {
		this.createDate = createDate;
		this.modifyDate = modifyDate;
		this.orders = orders;
		this.beginDate = beginDate;
		this.endDate = endDate;
		this.endPrice = endPrice;
		this.introduction = introduction;
		this.isCouponAllowed = isCouponAllowed;
		this.isFreeShipping = isFreeShipping;
		this.name = name;
		this.pointOperator = pointOperator;
		this.pointValue = pointValue;
		this.priceOperator = priceOperator;
		this.priceValue = priceValue;
		this.startPrice = startPrice;
		this.title = title;
		this.promotionMemberRanks = promotionMemberRanks;
		this.promotionBrands = promotionBrands;
		this.promotionProducts = promotionProducts;
		this.promotionCoupons = promotionCoupons;
		this.giftItems = giftItems;
		this.promotionProductCategories = promotionProductCategories;
	}

	// Property accessors

	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Timestamp getCreateDate() {
		return this.createDate;
	}

	public void setCreateDate(Timestamp createDate) {
		this.createDate = createDate;
	}

	public Timestamp getModifyDate() {
		return this.modifyDate;
	}

	public void setModifyDate(Timestamp modifyDate) {
		this.modifyDate = modifyDate;
	}

	public Integer getOrders() {
		return this.orders;
	}

	public void setOrders(Integer orders) {
		this.orders = orders;
	}

	public Timestamp getBeginDate() {
		return this.beginDate;
	}

	public void setBeginDate(Timestamp beginDate) {
		this.beginDate = beginDate;
	}

	public Timestamp getEndDate() {
		return this.endDate;
	}

	public void setEndDate(Timestamp endDate) {
		this.endDate = endDate;
	}

	public Double getEndPrice() {
		return this.endPrice;
	}

	public void setEndPrice(Double endPrice) {
		this.endPrice = endPrice;
	}

	public String getIntroduction() {
		return this.introduction;
	}

	public void setIntroduction(String introduction) {
		this.introduction = introduction;
	}

	public Boolean getIsCouponAllowed() {
		return this.isCouponAllowed;
	}

	public void setIsCouponAllowed(Boolean isCouponAllowed) {
		this.isCouponAllowed = isCouponAllowed;
	}

	public Boolean getIsFreeShipping() {
		return this.isFreeShipping;
	}

	public void setIsFreeShipping(Boolean isFreeShipping) {
		this.isFreeShipping = isFreeShipping;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getPointOperator() {
		return this.pointOperator;
	}

	public void setPointOperator(Integer pointOperator) {
		this.pointOperator = pointOperator;
	}

	public Double getPointValue() {
		return this.pointValue;
	}

	public void setPointValue(Double pointValue) {
		this.pointValue = pointValue;
	}

	public Integer getPriceOperator() {
		return this.priceOperator;
	}

	public void setPriceOperator(Integer priceOperator) {
		this.priceOperator = priceOperator;
	}

	public Double getPriceValue() {
		return this.priceValue;
	}

	public void setPriceValue(Double priceValue) {
		this.priceValue = priceValue;
	}

	public Double getStartPrice() {
		return this.startPrice;
	}

	public void setStartPrice(Double startPrice) {
		this.startPrice = startPrice;
	}

	public String getTitle() {
		return this.title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public Set getPromotionMemberRanks() {
		return this.promotionMemberRanks;
	}

	public void setPromotionMemberRanks(Set promotionMemberRanks) {
		this.promotionMemberRanks = promotionMemberRanks;
	}

	public Set getPromotionBrands() {
		return this.promotionBrands;
	}

	public void setPromotionBrands(Set promotionBrands) {
		this.promotionBrands = promotionBrands;
	}

	public Set getPromotionProducts() {
		return this.promotionProducts;
	}

	public void setPromotionProducts(Set promotionProducts) {
		this.promotionProducts = promotionProducts;
	}

	public Set getPromotionCoupons() {
		return this.promotionCoupons;
	}

	public void setPromotionCoupons(Set promotionCoupons) {
		this.promotionCoupons = promotionCoupons;
	}

	public Set getGiftItems() {
		return this.giftItems;
	}

	public void setGiftItems(Set giftItems) {
		this.giftItems = giftItems;
	}

	public Set getPromotionProductCategories() {
		return this.promotionProductCategories;
	}

	public void setPromotionProductCategories(Set promotionProductCategories) {
		this.promotionProductCategories = promotionProductCategories;
	}

}